package org.example.packone;


public class ClassOneInPackOne {
    final String fieldWithPackageVisibility = "fieldWithPackageVisibility";
    protected final String protectedField = "protectedField";
    public ClassOneInPackOne() {
        System.out.println("ClassOneInPackOne");
    }
}

class ClassTwoInPackOne {
    private final String message;
    final String fieldWithPackageVisibility;
    protected final String protectedField;

    public ClassTwoInPackOne(String message) {
        this.message = message;
        this.fieldWithPackageVisibility = message;
        this.protectedField = message;
    }

    public void printMessage() {
        System.out.println(message);
    }

    void printMsgWithPackageVisibility(){
        System.out.println(message);
    }
}